<?php
/**
 * Created by PhpStorm.
 * User: KHACHUNG
 * Date: 4/4/14
 * Time: 9:32 AM
 */
class Cauhoi extends AppModel{
    var $name='Cauhoi';
    function topuser(){
        return $this->query('select users_id,count(*) as tongcau from cauhois GROUP BY users_id ORDER BY tongcau DESC');
    }
}